import os


def conf_(PROG):
    # 是否运行在正式环境
    IN_PROD = (PROG == 'webhook.py')                # if webhook.py   bool
    # IN_PROD==False ROBOT_URL=='https:..<k1>'  反之 https...<k2>
    ROBOT_URL = IN_PROD and 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=<k2>' or 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=<k1>'
    PORT = IN_PROD and 10000 or 9090                # IN_PROD==False  port 9090 反之 10000
    return PORT, ROBOT_URL











